bitkeeper revision 1.1389.4.1 (42778db0fg1Gd_OZr6N8_onX23xy3g)
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 3 May 2005 14:41:52 +0000 (14:41 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 3 May 2005 14:41:52 +0000 (14:41 +0000)
commit7570401dfac55eb779e4482a7fe8f4e9e17b23d7
tree83e28e4fcb19d1693c5538ce3db14fdb8ca52d60
parentf81967e2f7ac2205c468daec264ae535d64eb42d
bitkeeper revision 1.1389.4.1 (42778db0fg1Gd_OZr6N8_onX23xy3g)

Patch to allow vcpu hotplugging in domU
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
From: Ryan Harper
  Two config changes are required to use this change:
    1) CONFIG_SMP=y
    2) CONFIG_HOTPLUG_CPU=y

  I've tested unplugging/plugging cpus in domU via the sysfs interface
  that the patch provides.

  hungerforce:~# grep processor /proc/cpuinfo
  processor       : 0
  processor       : 1
  processor       : 2
  processor       : 3
  hungerforce:~# cd /sys/devices/system/cpu/
  hungerforce:/sys/devices/system/cpu# echo 0 > cpu3/online
  hungerforce:/sys/devices/system/cpu# grep processor /proc/cpuinfo
  processor       : 0
  processor       : 1
  processor       : 2
  hungerforce:/sys/devices/system/cpu# echo 1 > cpu3/online
  hungerforce:/sys/devices/system/cpu# grep processor /proc/cpuinfo
  processor       : 0
  processor       : 1
  processor       : 2
  processor       : 3

  It seems that all processors besides cpu0 can be removed.  I've not done
  any investigation nor optimization of the hotplug patch.  I attempted to
  unplug cpus in dom0, but this resulted in Xen rebooting.

Makefile, Kconfig, smpboot.c, smp.c, process.c, irq.c:
  Fix hotplug cpu support.
Makefile:
  Setup reach-over build of topology.o.
i386-cpu-hotplug-updated-for-mm.patch:
  Add i386 hotplug patch from:
  ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.11-rc5/2.6.11-rc5-mm1/broken-out/i386-cpu-hotplug-updated-for-mm.patch
i386-cpu-hotplug-updated-for-mm.patch, Makefile:
  new file
traps.c, smpboot.c, smp.c, process.c, irq.c, Kconfig:
  Merge changes from hotplug patch.
.rootkeys
linux-2.6.11-xen-sparse/arch/xen/i386/Kconfig
linux-2.6.11-xen-sparse/arch/xen/i386/Makefile
linux-2.6.11-xen-sparse/arch/xen/i386/kernel/irq.c
linux-2.6.11-xen-sparse/arch/xen/i386/kernel/process.c
linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smp.c
linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smpboot.c
linux-2.6.11-xen-sparse/arch/xen/i386/kernel/traps.c
linux-2.6.11-xen-sparse/arch/xen/i386/mach-default/Makefile [new file with mode: 0644]
patches/linux-2.6.11/i386-cpu-hotplug-updated-for-mm.patch [new file with mode: 0644]